package com.quad.innovators.salesease.converter;

import com.quad.innovators.salesease.model.entity.warehouse.PurchaseOrderDetail;
import com.quad.innovators.salesease.model.form.warehouse.PurchaseOrderDetailForm;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * @author : shanshan.li
 * @createTime : 2024/10/20 09:51
 * @Version : 1.0
 */
@Mapper(componentModel = "spring")
public interface PurchaseOrderDetailConverter {


    PurchaseOrderDetailForm toForm(PurchaseOrderDetail entity);

    @InheritInverseConfiguration(name = "toForm")
    PurchaseOrderDetail toEntity(PurchaseOrderDetailForm entity);
}
